package com.kingyun.gpsinspection.purificationservice.services.iam.innerservice.up.impl;

import com.kingyun.gpsinspection.purificationservice.dao.mapper.iam.up.LoginLogMapper;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.up.LoginLog;
import com.kingyun.gpsinspection.purificationservice.facade.service.iam.up.LoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by ${yangsy} on 2017/3/20.
 */
@Service
public class LoginLogServiceImpl implements LoginLogService {

    @Autowired
    private LoginLogMapper loginLogMapper;

    @Override
    public int insertSelective(LoginLog record) {
        return loginLogMapper.insertSelective(record);
    }

    @Override
    public LoginLog selectLastLoginTime(String userId) {
        return loginLogMapper.selectLastLoginTime(userId);
    }

    @Override
    public int deleteAll() {
        return loginLogMapper.deleteAll();
    }

    @Override
    public int deleteDoLogAll() {
        return loginLogMapper.deleteDoLogAll();
    }
}
